﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Zj.HttpCodeDemo.Domain.Events
{
    public interface IEventStore
    {
        void Save<TEvent>(TEvent @event)
            where TEvent:IEvent;
        Task SaveAsync<TEvent>(TEvent @event)
            where TEvent : IEvent;
    }
}
